#include <string>
#include <iostream>
using namespace std;

int main()
{
string firstName,lastName, maidenName, birthTown,starWarsFirstName,starWarsLastName,result;
cout<<"Type your first name and press enter : ";
cin>>firstName;
cout<<"Enter your last name : ";
cin>>lastName;
cout<<"Enter your mother's maiden name : ";
cin>>maidenName;
cout<<"Finally, enter the name of the city in which you were born : ";
cin>> birthTown;
starWarsFirstName = lastName.substr(0,3)+firstName.substr(0,2);
starWarsLastName = maidenName.substr(0,2)+birthTown.substr(0.3);
result=starWarsFirstName+" "+starWarsLastName;
cout<<"This is your Star Wars name : "<<result<<endl;
system("pause");

}